/*
 * Utils.h
 */
 
#ifndef UTILS_H_
#define UTILS_H_

#include <iostream>
#include <sstream>
using std::string;
using std::istringstream;

class Utils {
public:
	Utils() {};
	virtual ~Utils() {};
	/**
	 * Utility method to tokenize strings
	 */
	static string* stringTokenize(string str, char delimiter, int& tokenCount);
	/**
	 * Utility method to convert from String to float
	 */
	static float stringToFloat(string s);
	/**
	* Utility method to validate floats
	*/
	static bool validateFloat(string s);
	/**
	* Utility method to convert form "," to "."
	*/
	static void comaToDot(string& s);
	/**
	* Utility method to convert a float from negative to positive
	*/
	static string negativeToPositive(string s);
	/**
	* Utility method to convert a integer to string
	*/
	static string intToString(int i);
};
#endif /*UTILS_H_*/
